package com.jprocms.module.cms.api.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Set;

/**
 * @author jprocms
 */
@Data
public class SiteConfigStaticPageDto implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 是否开启静态服务
     */
    @Schema(description = "是否开启静态化")
    @NotNull(message = "是否开启静态化")
    private Boolean openSiteStaticPage = false;

    /**
     * 静态化发布平台
     */
    @Schema(description = "静态化发布平台")
    private Set<Long> staticPagePlatforms;

    /**
     * 静态化发布FTP数组
     */
    @Schema(description = "静态化发布FTP")
    private Set<Long> staticPageFtpIds;

    @Schema(description = "是否自动生成静态化")
    @NotNull(message = "是否自动生成静态化")
    private Boolean openAuto = true;

    /**
     * 栏目列表静态化最大页数
     */
    @Schema(description = "栏目列表静态化最大页数")
    private Integer listMaxPageSize = 20;

}
